package com.itheima.leyou.mapper;

import com.itheima.leyou.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    /**
     * 多参数
     * @param id
     * @param name
     * @return
     */
    User getUserParam(@Param("id") int id, @Param("name") String name);

    /**
     * 实体类参数
     * @param user
     * @return
     */
    List<User> getUser(@Param("user") User user);
}
